package com.six.backend.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author: skyler
 * @Date: 2021/11/17 18:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel("登录日志")
public class LoginLog {
    @NotNull
    @ApiModelProperty("登录的账户")
    private String account;

    @NotNull
    @ApiModelProperty("登录账户的ip")
    private String ip;

    @NotNull
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("登录的时间")
    private Date time;
}
